package cn.buk.tms.flight.dto;

import java.util.ArrayList;
import java.util.List;

public class FlightOfferPrice  {

  /**
   * 错误代码
   * 0 - 无错误
   */
  private int errcode;

  /**
   * 错误信息
   */
  private String errmsg;

  private String shoppingResponseId;

  private List<SegmentInfoDto> segments;

  public String getShoppingResponseId() {
    return shoppingResponseId;
  }

  public void setShoppingResponseId(String shoppingResponseId) {
    this.shoppingResponseId = shoppingResponseId;
  }

  public List<SegmentInfoDto> getSegments() {
    if (segments == null) {
      segments = new ArrayList<>();
    }
    return segments;
  }

  public void setSegments(List<SegmentInfoDto> segments) {
    this.segments = segments;
  }

  public int getErrcode() {
    return errcode;
  }

  public void setErrcode(int errcode) {
    this.errcode = errcode;
  }

  public String getErrmsg() {
    return errmsg;
  }

  public void setErrmsg(String errmsg) {
    this.errmsg = errmsg;
  }
}
